package com.exmaple.springcloud.service.impl;

import com.exmaple.springcloud.entity.Pay;
import com.exmaple.springcloud.mapper.PayMapper;
import com.exmaple.springcloud.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayServiceImpl implements PayService {

    @Autowired
    PayMapper payMapper;
    @Override
    public int addPay(Pay pay) {
        return payMapper.addPay(pay);
    }

    @Override
    public int deletePay(Integer id) {
        return payMapper.deletePay(id);
    }

    @Override
    public int updatePay(Pay pay) {
        return payMapper.updatePay(pay);
    }

    @Override
    public List<Pay> getPayAllList() {
        return payMapper.getPayAllList();
    }

    @Override
    public Pay getPayById(Integer id) {
        return payMapper.getPayById(id);
    }
}
